﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;

namespace OOPPermission
{
    internal class Fridge
    {
        public Fridge(string name)
        {
            Open();
            Put(name);
            Close();
        }
        
        private void Open()
        {
            Console.WriteLine("打开冰箱");
        }
        private void Put(string name)
        {
            Console.WriteLine("把{0}放入冰箱", name);
        }

        private void Close()
        {
            Console.WriteLine("关上冰箱");
        }
    }
}
